package com.first.module.acm.dao.impl;

import com.first.core.dao.impl.BaseDaoImpl;
import com.first.module.acm.dao.FunUrlDao;
import com.first.module.acm.model.FunUrl;

public class FunUrlDaoImpl extends BaseDaoImpl<FunUrl>
  implements FunUrlDao
{
  public FunUrlDaoImpl()
  {
    super(FunUrl.class);
  }

  public FunUrl getByPathFunId(String path, String funId)
  {
    String hql = "from FunUrl fu where fu.urlPath=? and fu.appFunction.functionId=? ";
    return (FunUrl)findUnique(hql, new Object[] { path, funId });
  }
}

